package com.jiahao.material.services.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiahao.material.entity.Role;
import com.jiahao.material.mapper.RoleMapper;
import com.jiahao.material.services.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public IPage<Role> getByPage(Page<Role> page, Map<String, Object> map) {
        return roleMapper.getByPage(page,map);
    }

}
